<!-- Documentation produced by the Html generator of Bouml (http://bouml.free.fr) -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Sequence Diagram Index</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body bgcolor="#ffffff">

<div class = "title">Sequence Diagram Index</div>
<p></p>

<!-- ============================================================= -->

<table>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128898" target = "projectFrame"><b>authentication</b></a></td><td></td><td><br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128514" target = "projectFrame"><b>chang_registration</b></a></td><td></td><td>1.check_registration() : ensure that  user's email is not duplicated<br />2.log_changes() : keep log on successful changes<br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram129282" target = "projectFrame"><b>messaging</b></a></td><td></td><td>list_my_message()  : List  private messages,  for example message exchanged between admins<br /><br />list_users_message()  : List  messages send form users. When users send message to admin, all admin (except super admin) will see the message.<br /><br />show_message()  : display the selected message<br /><br />reply_message()  : reply private message and put message in OUTBOX<br /><br />delete_message()  : delete private message only<br /><br />select_receiver()  : select list of users or group to send message.<br /><br />create_message()  : create message to send. <br />If receiver is set to "ALL", all users in the system will reveive the mesage.<br />If receiver is set to "ADMIN", all admin except supperAdmin  will reveive the mesage.<br />If receiver is set to "ONLINE"  all online users in the system will reveive the mesage.<br /><br />create_group() :  create group of users ( group canno be included in other group)<br />delete_group() :  delete selected  group<br />modify_group() :  add/delte users in selected  group<br /><br />maintenance(n)  : detele message entries older than n months in OUTBOX <br />maintenance(n,deleteMesage)  :  delete all messages  older than n months in OUTBOX . The funtion can only be run by supperAdmin .<br /><br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128386" target = "projectFrame"><b>post_adverts</b></a></td><td></td><td>1)  advert statuses<br />- newStatus : advert is a newly posted<br />- reviewStatus : advert was put in queue for system verfication<br />- userReviewStatus : advert was put in queue for user reviewing<br />- deletedStatus  : product was temporarily  deleted and will be deleted permenantly by  purge_deleted_adverts()<br />- activeStatus : advert was  currently public<br />- closedStatus : advert was closed (not  publicly viewed  and  hidden firom all system tasks)<br /><br />(2) auto_verification()   :  adverts  with  newStatus and modifiedStatus are changed to completedStatus automatically after a period of queuing<br /><br />(3) save_advert () : <br />- Users can only make change  to newStatus / reviewStatus adverts<br />- Admin can make changes to all  adverts<br /><br />(4) delete_advert () : <br />- Users can only delete  newStatus/ reviewStatus  adverts<br />- Admins can delete  all  adverts except for  closed adverts<br />- Supers admin can delete all  adverts.<br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram129026" target = "projectFrame"><b>post_buying_requests</b></a></td><td></td><td>1)save_product()  <br />- newState : buy request is a newly posted<br />- modifiedState : buy request was modified by owner<br />- userReviewState : buy request was put in queue for user reviewing<br />- reviewState : buy request was put in queue for system verfication <br />- deletedState , userDeletedState: buy request was temporarily  deleted and will be deleted permenantly by  purge_deleted_buy requests()<br />- activeState : buy request was publicly displayed<br />- closedStatus : buy request was closed (not  publicly viewed  and  hidden firom all system tasks)<br /><br />(2) auto_verification()   : product s  with   newState and modifiedState are changed to completedState automatically after a period of  time<br /><br /><br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram129154" target = "projectFrame"><b>post_news</b></a></td><td></td><td>1)save_news()  <br />- newState : news  is a newly posted<br />- modifiedStatus : news was modified by owner<br />- userReviewStatus : news was put in queue for user reviewing<br />- reviewStatus : news was put in queue for system verfication <br />- deletedStatus , userDeletedState: news request was temporarily  deleted and will be deleted permenantly by  purge_deleted_buy requests()<br />- activedStatus : news was accepted for publicly displaying<br />- closedStatus : news was closed  and not  publicly viewed. <br /><br />(2) auto_verification()   : news   with  newStatus and reviewStatus are changed to activeStatus automatically after a period of  time<br /><br />(3) modify_news_contents()  :  <br />- Users  can only  modify  a newStatus news.<br />- Admin can modify all news except for closeStatus<br />- SupperAdmin can modify all news<br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128770" target = "projectFrame"><b>post_selling_products</b></a></td><td></td><td>1)save_product()  <br />- newStatus : product is a newly posted<br />- userReviewStatus : product was put in queue for user reviewing<br />- reviewStatus : product was put in queue for system verfication <br />- deletedStatus , userDeletedStatus : product was temporarily  deleted and will be deleted permenantly by  purge_deleted_products()<br />- activeStatus : product was public displayed<br />- closedStatus : advert was closed (not  publicly viewed  and  hidden firom all system tasks)<br /><br />(2) auto_verification()   : products  with   newStatus and modifiedStatus are changed to completedStatus automatically after a period of  time<br /><br />(3) save_product () : <br />- Users can only make change  to newStatus / reviewStatus adverts<br />- Admin can make changes to all  adverts<br /><br />(4) delete_product() : <br />-  Users can only delete  newStatus/ reviewStatus  adverts of themselves<br />- Admins can delete  all  adverts except for  closed adverts<br />- Supers admin can delete all  adverts.<br /><br /><br /><br /><br /><br /><br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128642" target = "projectFrame"><b>post_small_advert</b></a></td><td></td><td>Same as post_adverts except for<br />(1) No  userReviewStatus<br />(2) delete_advert () : <br />- Users can only delete  newStatus/ reviewStatus  adverts<br />- Admins can delete  all  adverts<br /><br /></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128130" target = "projectFrame"><b>public_rating</b></a></td><td></td><td>check_duplicate() ensures that  rating could not make twice based on the account and source IP address</td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128258" target = "projectFrame"><b>rating</b></a></td><td></td><td></td></tr>
<tr bgcolor=#f0f0f0><td><a href="index.html#refsequence diagram128111" target = "projectFrame"><b>registration</b></a></td><td></td><td>1.select_account_form(): show form with recommended accounts to select<br />2.check_availability() : check the availability of selected account and return a list of recommended account if it is not available <br />3.check_registration() : ensure that  user's email is not duplicated<br /><br /></td></tr>
</table>
</body>
</html>
